home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 8 / Revista CD Expert nº 08 CD1.iso / Utilitarios / Programacao / Pacific C for DOS / EXAMPLES / README < prev    next >
Text File  |  1995-03-08  |  6KB  |  111 lines

  1. Use the programs in this directory to explore the features of the
  2. Pacific C compiler.
  3.  
  4. MAKEALL.BAT MS-DOS batch file which compiles all of the programs
  5.             in this directory in one hit.
  6.  
  7. ARGS.C      demonstrates use of the "argc" and "argv" parameters
  8.             to main() to iterate through command line arguments
  9.             to a program.  You can also use this program to test
  10.             the effect of the PACC "-R" option and the PPD option
  11.             "_getargs() wildcard expansion".
  12.  
  13. CHK.C       simple file checksum utility.  Generates a 32-bit
  14.             checksum for each file passed on the command line.
  15.  
  16. EXITFUNC.C  demonstrates use of the atexit() function to install
  17.             a user function which will be automatically executed
  18.             when your program terminates.
  19.  
  20. FCALC.C     simple floating point calculator program.  Compile
  21.             with "Use floating point library" enabled in PPD, or
  22.             the PACC -lf option.  For better performance with a
  23.             floating point co-processor, enable hardware floating
  24.             point in the "Memory model and chip type ..." dialog
  25.             or use the PACC -7 option.
  26.  
  27. FULLPATH.C  demonstrates the use of the _fullpath global variable
  28.             to determine the directory and name of the currently
  29.             executing program.  This program should be compiled
  30.             using the LARGE memory model because _fullpath is not
  31.             available in the small model library.
  32.  
  33. HELLO.C     the infamous hello world program known to programmers
  34.             everywhere!
  35.  
  36. HEXD.C      a handy HEX dump utility which you can use to examine
  37.             binary files and other mysteries.  Uses <stdio.h>
  38.             functions to read input files, uses argc and argv
  39.             to process the command line arguments.
  40.  
  41. KEYRATE.C   another useful utility, which can be used to set the
  42.             typematic rate (repeat speed and delay) on PC/AT type
  43.             keyboards.  Demonstrates the use of Pacific C "port"
  44.             variables to perform hardware specific tasks.
  45.  
  46. MOUSE.C     Pacific C mouse driver "glue" code.  This is not a
  47.             standalone program, it should be compiled to .OBJ
  48.             and linked with user application code.  The header
  49.             file "mouse.h" contains the extern declarations for
  50.             the routines and data structures contained in MOUSE.C
  51.             The routines in this module can be used to interface
  52.             to any standard mouse driver which uses the INT 33H
  53.             interface.  To compile MOUSE.C use the PACC command
  54.             PACC -O -Zg -C MOUSE.C or the PPD "Compile to OBJ" menu
  55.             item.
  56.  
  57. MOUSE.H     header file for MOUSE.C routines.  Examine this file
  58.             to determine what mouse functions are available.
  59.  
  60. MOUSEX.C    example code using the MOUSE.C interface routines.
  61.             Use this as the starting point for your own mouse
  62.             driven applications.  To compile using PACC, use the
  63.             command PACC MOUSEX.C MOUSE.OBJ.  To compile with PPD,
  64.             use the MOUSEX.PRJ multi-file project.
  65.  
  66. MOUSEX.PRJ  PPD project file used to compile MOUSEX.C and MOUSE.C
  67.             together as a single project.  Use this a a starting
  68.             point for your own multi-file projects.  If you did not
  69.             install Pacific C in the default C:\PACIFIC directory, you
  70.             may need to manually edit some of the path names in
  71.             this file.  Do not edit this MOUSEX.PRJ with the MS-DOS
  72.             EDIT command because EDIT converts tabs to spaces!
  73.  
  74. PRINTENV.C  demonstrates use of the getenv() function to return
  75.             the value of a DOS environment variable.  Also gives
  76.             an example of how to iterate through the command line
  77.             arguments passed to main
  78.  
  79. QSORTEX.C   contains example code using the qsort() function to
  80.             sort the contents of an array.
  81.  
  82. READDIR.C   gives an example of a practical use of the intdos()
  83.             function to read an MS-DOS directory.  The user gives
  84.             a search wildcard and the function putdir() will print
  85.             all matches.
  86.  
  87. READDIR2.C  is an alternative version of READDIR.C which uses the
  88.             msdos() function instead of intdos().  Note the use of
  89.             variable arguments with msdos() so only those arguments
  90.             actually required are passed.
  91.  
  92. SIEVE.C     is an implementation of the Sieve of Eratosthenes prime
  93.             number generator.
  94.  
  95. TALK.C      is the most complex of the demonstration programs.  It
  96.             is a simple terminal program which directly drives the
  97.             PC serial ports.  The serial port driver in talk is an
  98.             example of the the use of port variables and interrupt
  99.             functions to write an interrupt driven device driver.
  100.  
  101. U2D.C       UNIX to DOS text file conversion utility.  Converts UNIX
  102.             style text files with only newline (0AH) characters on
  103.             the end of lines to DOS style text files.
  104.  
  105. USAGE.C     utility which calculates the amount of disk space used
  106.             by a group of files or directories.  Includes recursive
  107.             directory scanning code which could be used as the core
  108.             of an "XTREE" type utility.  Exercise: modify the code
  109.             to determine the block size of the disk using MS-DOS
  110.             calls instead of requiring block size as a user option.
  111.